package com.zhledu.algorithm;

public class IntSplit {
    public static void main(String[] args) {
       // m1();187539689
        m3();
    }

    public static void m1() {
        int count = 0;
        for (int a = 1; a < 2022; a++) {
            for (int b = 1; b < 2022 - a; b++) {
                for (int c = 1; c < 2022 - a - b; c++) {
                    for (int d = 1; d < 2022 - a - b - c; d++) {
                        int e=2021-a-b-c-d;
                        if(e>=1){
                            count++;
                        }
                    }
                }
            }
        }
        System.out.println(count);
    }

    public static void m2() {
        int count = 0;
        for (int a = 1; a <=2021; a++) {
            for (int b = a; b <=2021; b++) {
                for (int c = 1; c < 2022; c++) {
                    for (int d = 1; d < 2022; d++) {
                        for (int e = 1; e < 2022; e++) {
                            if (a + b + c + d + e == 2021) {
                                count++;
                            }
                        }
                    }
                }
            }
        }
        System.out.println(count);
    }


    public static void m3() {
        int count = (2020 * 2019 * 2018 * 2017);
        System.out.println(count);


    }
}
